package demo01;

/**
 * @program: qy158
 * @description:
 * @author: 闫克起2
 * @create: 2022-10-25 09:09
 **/
public class Point {
    //该类中两个属性的数据类型---
    //Object是所有类的父类，多态。
    private Object x;
    private Object y;

    public Point(Object x, Object y) {
        this.x = x;
        this.y = y;
    }

    @Override
    public String toString() {
        return "Point{" +
                "x=" + x +
                ", y=" + y +
                '}';
    }

    public Object getX() {
        return x;
    }

    public void setX(Object x) {
        this.x = x;
    }

    public Object getY() {
        return y;
    }

    public void setY(Object y) {
        this.y = y;
    }
}
